#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
const int N = 1e6 + 10;
int a[N], b[N], c[N];
int sa, sb, sc;
void mul(int a[], int b[], int c[])
{
    for (int i = 0; i < sa; i++)
    {
        for (int j = 0; j < sb; j++)
        {
            c[i + j] += a[i] * b[j];
        }
    }
    for (int i = 0; i < sc; i++)
    {
        c[i + 1] += c[i] / 10;
        c[i] %= 10;
    }
    while (sc > 1 && c[sc - 1] == 0)
    {
        sc--;
    }
}
int main()
{
    string s1, s2;
    cin >> s1 >> s2;
    sa = s1.size();
    sb = s2.size();
    sc = sa + sb;
    for (int i = 0; i < sa; i++)a[sa - 1 - i] = s1[i] - '0';
    for (int i = 0; i < sb; i++)b[sb - 1 - i] = s2[i] - '0';
    mul(a, b, c);
    for (int i = sc - 1; i >= 0; i--)
    {
        cout << c[i];
    }
    return 0;
}